package com.example.xksys.service.impl;

import com.example.xksys.mapper.StudentMapper;

import com.example.xksys.service.StudentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

import java.util.List;
import java.util.Map;
@Service
public class StudentServiceImpl implements StudentService {
    @Resource
    private StudentMapper studentMapper;
    @Override
    public int doSave(Map<String, String> param) {
        return studentMapper.save(param);
    }
    @Override
    public List<Map<String, Object> > doregsearch(Map<String, String> param) {
        return studentMapper.regsearch(param);
    }
    @Override
    public List<Map<String,Object> > login(Map<String, String> param) {
          List<Map<String,Object>> list = null;
        try {
            list=studentMapper.login(param);
            System.out.println(list.toString()+"222222222222222222");
        } catch (Exception e) {
            e.printStackTrace();
        }
        return list;
    }

    @Override
    public List<Map<String, Object>> doCheckPwd(Map<String, String> param) {
        return studentMapper.checkPwd(param);
    }

    @Override
    public int doUpdatePwd(Map<String,String> param) {
        return studentMapper.updatePwd(param);
    }
}
